package com.clinic.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn(name = "cn_obj_id")
public class Counted_reservation extends Super_type {

	private static final long serialVersionUID = 1L;

	@Column(insertable = false, updatable = false)
	private int cn_obj_id;
	private int no_of_reservations1;
	private int no_of_reservations2;
	private int no_of_detection1;
	private int no_of_detection2;
	private Date date_of_reservation;

	public Counted_reservation() {
		super();
	}

	public Counted_reservation(String obj_owner_name, int no_of_reservations1,
			int no_of_reservations2, int no_of_detection1,
			int no_of_detection2, Date date_of_reservation) {
		super(obj_owner_name);
		this.no_of_reservations1 = no_of_reservations1;
		this.no_of_reservations2 = no_of_reservations2;
		this.no_of_detection1 = no_of_detection1;
		this.no_of_detection2 = no_of_detection2;
		this.date_of_reservation = date_of_reservation;
	}

	public int getNo_of_reservations1() {
		return no_of_reservations1;
	}

	public void setNo_of_reservations1(int no_of_reservations1) {
		this.no_of_reservations1 = no_of_reservations1;
	}

	public int getNo_of_reservations2() {
		return no_of_reservations2;
	}

	public void setNo_of_reservations2(int no_of_reservations2) {
		this.no_of_reservations2 = no_of_reservations2;
	}

	public int getNo_of_detection1() {
		return no_of_detection1;
	}

	public void setNo_of_detection1(int no_of_detection1) {
		this.no_of_detection1 = no_of_detection1;
	}

	public int getNo_of_detection2() {
		return no_of_detection2;
	}

	public void setNo_of_detection2(int no_of_detection2) {
		this.no_of_detection2 = no_of_detection2;
	}

	public Date getDate_of_reservation() {
		return date_of_reservation;
	}

	public void setDate_of_reservation(Date date_of_reservation) {
		this.date_of_reservation = date_of_reservation;
	}

	public int getCn_obj_id() {
		return cn_obj_id;
	}

	@Override
	public void _toString() {
		System.out.println("Enter - _toString");
		super._toString();
		System.out.println("no_of_reservations1: " + this.no_of_reservations1
				+ "\nno_of_reservations2: " + this.no_of_reservations2
				+ "\nno_of_detection1: " + this.no_of_detection1
				+ "nno_of_detection1: " + this.no_of_detection2
				+ "date_of_reservation: " + this.date_of_reservation);
		System.out.println("Exit - _toString");
	}
}